package com.naughty.userlogin02.bean;

public class Book {
    private  String bid;
    private  String bname ;
    private  String bpicture;
    private  String bowner ;
    private  String borigin;
    public String brank;
    private  String btext ;

    //关于枚举型，我们只需要在idea里面设置为string型，但是在数据库里面设置为enum型即可，不需要在idea里面对枚举型进行声明
    // 构造函数

    public Book() {
    }

    public Book(String bid, String bname, String bpicture, String bowner, String borigin, String brank, String btext) {
        this.bid = bid;
        this.bname = bname;
        this.bpicture = bpicture;
        this.bowner = bowner;
        this.borigin = borigin;
        this.brank = brank;
        this.btext = btext;
    }

    // get and set 方法

    public String getBid() {
        return bid;
    }

    public void setBid(String bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getBpicture() {
        return bpicture;
    }

    public void setBpicture(String bpicture) {
        this.bpicture = bpicture;
    }

    public String getBowner() {
        return bowner;
    }

    public void setBowner(String bowner) {
        this.bowner = bowner;
    }

    public String getBorigin() {
        return borigin;
    }

    public void setBorigin(String borigin) {
        this.borigin = borigin;
    }

    public String getBtext() {
        return btext;
    }

    public void setBtext(String btext) {
        this.btext = btext;
    }

    public String getBrank() {
        return brank;
    }

    public void setBrank(String brank) {
        this.brank = brank;
    }

    //to string方法


    @Override
    public String toString() {
        return "Book{" +
                "bid='" + bid + '\'' +
                ", bname='" + bname + '\'' +
                ", bpicture='" + bpicture + '\'' +
                ", bowner='" + bowner + '\'' +
                ", borigin='" + borigin + '\'' +
                ", brank='" + brank + '\'' +
                ", btext='" + btext + '\'' +
                '}';
    }
}
